const vm = new Vue({
    el: '#app',
    data: {
        useName: '',
        activeIndex: '1',
        iframeSrc: 'iframe/home.html',
        fullscreenLoading: false
    },
    methods: {
        handleSelect(key, keyPath) {
            console.log(key, keyPath);
            switch (key) {
                case '1':
                    this.iframeSrc = 'iframe/home.html';
                    this.openFullScreen();
                    break;
                case '2':
                    this.iframeSrc = 'iframe/order.html';
                    this.openFullScreen();
                    break;
                case '3':
                    break;
                case '4':
                    break;
                default:
                    break;
            }
        },
        openFullScreen() {
            this.fullscreenLoading = true;
        }
    },
    created() {
        this.openFullScreen();
    },
});